package jee.boot.entity.auth;

import jee.boot.common.annotation.Table;
import jee.boot.entity.system.GeneralDataEntity;

/**
 * 实体操作等级
 */
@Table(name="at_operation_level")
public class OperationLevel extends GeneralDataEntity<OperationLevel> {
    /**
     * 优先级
     */
    @jee.boot.common.annotation.Column(name = "st_priority")
    private Integer priority=0;//
    /**
     * 规则ID
     */
    @jee.boot.common.annotation.Column(name = "st_rule_id")
    private String ruleId;//引用：待定预留,ST_TREE_ASIGN_SITUATION_TYPE='DIC_SYS_TreeAsignSituationType_TAST01'时当前字段不启用
    /**
     * 规则关键字
     */
    @jee.boot.common.annotation.Column(name = "st_rule_keyword")
    private String ruleKeyword;//文本，考虑到此处与后端程序约定的关键词可能含有URL或参数等长度较长的信息，此处字段长度设定为2000。
    /**
     * 无权限时的默认操作等级标志
     */
    @jee.boot.common.annotation.Column(name = "st_no_perm_default_flag")
    private String noPermDefaultFlag;//字典：DIC_SYS_YesNo
    /**
     * 有权限但未指定操作等级时的默认操作等级标志
     */
    @jee.boot.common.annotation.Column(name = "st_no_spec_default_flag")
    private String noSpecDefaultFlag;//字典：DIC_SYS_YesNo
    /**
     * 系统专用标志
     */
    @jee.boot.common.annotation.Column(name = "st_system_used_flag")
    private String systemUsedFlag;//字典：DIC_SYS_YesNo

    public OperationLevel() {
    }

    public OperationLevel(String id) {
        super(id);
    }

    public OperationLevel(Integer priority, String ruleKeyword) {
        this.priority = priority;
        this.ruleKeyword = ruleKeyword;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public String getRuleId() {
        return ruleId;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    public String getRuleKeyword() {
        return ruleKeyword;
    }

    public void setRuleKeyword(String ruleKeyword) {
        this.ruleKeyword = ruleKeyword;
    }

    public String getNoPermDefaultFlag() {
        return noPermDefaultFlag;
    }

    public void setNoPermDefaultFlag(String noPermDefaultFlag) {
        this.noPermDefaultFlag = noPermDefaultFlag;
    }

    public String getNoSpecDefaultFlag() {
        return noSpecDefaultFlag;
    }

    public void setNoSpecDefaultFlag(String noSpecDefaultFlag) {
        this.noSpecDefaultFlag = noSpecDefaultFlag;
    }

    public String getSystemUsedFlag() {
        return systemUsedFlag;
    }

    public void setSystemUsedFlag(String systemUsedFlag) {
        this.systemUsedFlag = systemUsedFlag;
    }
}
